<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="CoreUI - Open Source Bootstrap Admin Template">
    <meta name="author" content="Łukasz Holeczek">
    <meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,AngularJS,Angular,Angular2,Angular 2,Angular4,Angular 4,jQuery,CSS,HTML,RWD,Dashboard,React,React.js,Vue,Vue.js">
    <link rel="shortcut icon" href="img/favicon.png">
    <title>管理员管理班级页</title>

    <!-- Icons -->
    <link href="vendors/css/flag-icon.min.css" rel="stylesheet">
    <link href="vendors/css/font-awesome.min.css" rel="stylesheet">
    <link href="vendors/css/simple-line-icons.min.css" rel="stylesheet">

    <!-- Main styles for this application -->
    <link href="vendors/css/style.css" rel="stylesheet">
    <!-- Styles required by this views -->

</head>

<!-- BODY options, add following classes to body to change options

// Header options
1. '.header-fixed'					- Fixed Header


-->

<div>

    <nav aria-label="breadcrumb" role="navigation">
        <ol class="breadcrumb">
            <li class="breadcrumb-item active" aria-current="page">Home</li>
        </ol>
    </nav>
    <div class="btn-group">
        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">创建/加入班级
        </button>
        <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
            <a  type="button" class="btn btn-info dropdown-item" data-toggle="modal" data-target="#infoModal">创建班级</a>



            <a type="button" class="dropdown-item btn btn-secondary" data-toggle="modal" data-target="#smallModal"href="#">加入班级</a>



        </div>
    </div>
    <hr>
    <div class="row">
        <div class="col-sm-6 col-md-3">
            <div class="card">
                <div class="card-header">
                    商软一班
                    <div class="card-actions">

                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">    <i class="icon-settings " ></i>
                            </a>
                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>
                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>
                        </div>



                    </div>
                </div>
                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="col-sm-6 col-md-3">
            <div class="card">
                <div class="card-header">
                    商软二班
                    <div class="card-actions">

                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings"></i></a>

                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>


                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>


                        </div>

                    </div>
                </div>

                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3">
            <div class="card">
                <div class="card-header">
                    商软三班
                    <div class="card-actions">


                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings"></i></a>

                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>


                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>

                        </div>
                    </div>

                </div>
                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3" id="1" style="display: none">
            <div class="card">
                <div class="card-header">
                    <input value="" id="v1" style="border: 0px" disabled="disabled">
                    <div class="card-actions">


                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings"></i></a>

                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>


                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>

                        </div>
                    </div>

                </div>
                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3" id="2" style="display: none">
            <div class="card">
                <div class="card-header">
                    <input value="" id="v2" style="border: 0px" disabled="disabled">
                    <div class="card-actions">


                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings"></i></a>

                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>


                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>

                        </div>
                    </div>

                </div>
                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3" id="3" style="display: none">
            <div class="card">
                <div class="card-header">
                    <input value="" id="v3" style="border: 0px" disabled="disabled">
                    <div class="card-actions">


                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings"></i></a>

                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>


                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>

                        </div>
                    </div>

                </div>
                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3" id="4" style="display: none">
            <div class="card">
                <div class="card-header">
                    <input value="" id="v4" style="border: 0px" disabled="disabled">
                    <div class="card-actions">


                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings"></i></a>

                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>


                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>

                        </div>
                    </div>

                </div>
                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-sm-6 col-md-3" id="5" style="display: none">
            <div class="card">
                <div class="card-header">
                    <input value="" id="v5" style="border: 0px" disabled="disabled">
                    <div class="card-actions">


                        <div class="btn-group">
                            <a href="#" class="btn-setting" type="button"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings"></i></a>

                            <div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 34px, 0px); top: 0px; left: 0px; will-change: transform;">
                                <a class="dropdown-item" href="#">编辑</a>
                                <a class="dropdown-item" href="#">删除</a>
                                <a class="dropdown-item" href="#">归档</a>

                            </div>


                            <a href="#" class="btn-minimize" data-toggle="collapse" data-target="#collapseExample" aria-expanded="true"><i class="icon-arrow-up"></i></a>

                        </div>
                    </div>

                </div>
                <div style="background-image: url(vendors/img/1.jpg);"class="card-body collapse show" id="collapseExample">

                    <h5 >身份：管理员</h5>

                    <p>近期作业：</p>
                    <ul style="list-style-type:none">
                        <li><a href="#">1、爬取广商校园新闻</a></li>
                        <li><a href="#">2、爬取广商校园新闻</a></li>
                        <li><a href="#">3、爬取广商校园新闻</a></li>
                    </ul>
                </div>
            </div>
        </div>



    </div>
</div>







<div class="modal fade show" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" style="display:none;">
    <div class="modal-dialog modal-info" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">创建班级</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">
                <p>输入班级名称：</p>
                <input type="text" class="form-control" id="name1" placeholder="" style="border: 0px;border-bottom:1px solid;" >
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary" id="Save">Save changes</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>



<div class="modal fade show" id="smallModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" style="display: none;">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">加入班级</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">
                <input type="text" style="border: 0px;border-bottom:1px solid;" class="form-control" id="name" placeholder="请输入班级加课验证码">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

<!-- Bootstrap and necessary plugins -->
<script src="vendors/js/jquery.min.js"></script>
<script src="vendors/js/popper.min.js"></script>
<script src="vendors/js/bootstrap.min.js"></script>
<script src="vendors/js/pace.min.js"></script>

<!-- Plugins and scripts required by all views -->
<script src="vendors/js/Chart.min.js"></script>

<!-- CoreUI main scripts -->

<script src="vendors/js/app.js"></script>

<script>
    var i=1;
    $("#Save").click(function(){
        $("#infoModal").modal('hide');
        var classname=$("#name1").val();
        var x='v'+i;
        $("#"+i+"").css('display','block');
        $("#"+x+"").val(classname);

        i+=1;
    });

</script>
</body>
</html>